/**
 * Copyright © 2015-2020 <a href="http://www.jeeplus.org/">JeePlus</a> All rights reserved.
 */
package com.jeeplus.modules.tbuildinginfo.mapper;

import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
import com.jeeplus.core.persistence.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import com.jeeplus.modules.tbuildinginfo.entity.TBuildingInfo;

import java.util.List;
import java.util.Map;

/**
 * 楼宇列表MAPPER接口
 * @author pr
 * @version 2022-04-18
 */
@Mapper
@Repository
public interface TBuildingInfoMapper extends BaseMapper<TBuildingInfo> {

    List<Map<String,Object>> getBuildingInfoAllRegion();

    List<TBuildingInfo> getAllBuildingName();

    int addVisitCount(@Param("buildingId") String id);

    int addContractedCustomer(@Param("buildingId") String id);

    int removeContractedCustomer(@Param("buildingId") String id);
}